<?php

Route::group(['namespace' => 'Mini'], function () {
    //登录
    Route::any('/login','LoginController@login')->name('api.login.login');//登录
    Route::any('/getuserbyopenid','LoginController@getUserByOpenid')->name('api.login.getuserbyopenid');//登录
    Route::post('/register','LoginController@register')->name('api.login.register');//注册
    Route::post('/findpwd','LoginController@findPwd')->name('api.login.findPwd');//找回密码bb
    Route::post('/logout','LoginController@logout')->name('api.login.logout');//退出登录

    //公共方法
    Route::any('/config','CommonController@config')->name('api.common.config');//获取网站配置信息
    Route::any('/wxjsapi','CommonController@wxJSAPI')->name('api.common.wxJSAPI');//微信JSAPI
    Route::post('/getcategorys','CommonController@getCategorys')->name('api.common.getCategorys');//获取平台分类
    Route::post('/advs','CommonController@advs')->name('api.common.advs');//广告
    Route::post('/hotact','CommonController@hotAct')->name('api.common.hotAct');//热门活动
    Route::post('/hotgoods','CommonController@hotGoods')->name('api.common.hotGoods');//热销商品
    Route::post('/companys','CommonController@companys')->name('api.common.companys');//公司行业、类型、规模
    Route::post('/regions','CommonController@regions')->name('api.common.regions');//所有地区
    Route::post('/areas','CommonController@areas')->name('api.common.areas');//一线城市
    Route::post('/hrquickdemand','CommonController@hrQuickDemand')->name('api.common.hrQuickDemand');//HR快速发布需求

    //搜索
    Route::post('/hotList','SearchController@hotList')->name('api.search.hotList');//热门搜索
    Route::post('/addSearch','SearchController@addSearch')->name('api.search.addSearch');//新增热门搜索词条

    //电话
    Route::post('/phone/phonemap','MyphoneController@phoneMap')->name('api.phone.phoneMap');//获取虚拟电话
    Route::any('/phone/phonecallback', 'MyphoneController@phoneCallback')->name('api.phone.phoneCallback');//电话回调
    Route::post('/phone/getsms', 'MyphoneController@getSMS')->name('api.phone.getSMS');//获取短信验证码
    Route::get('/phone/sendsms', 'MyphoneController@sendSMS')->name('api.phone.sendSMS');//发送短信验证码

    //供应商
    Route::post('/storecate','StoreController@storeCate')->name('api.store.storeCate');//供应商分类
    Route::post('/storescreen','StoreController@storeScreen')->name('api.store.storeScreen');//供应商筛选
    Route::post('/storelists','StoreController@storeLists')->name('api.store.storeLists');//供应商列表
    Route::post('/storedetails','StoreController@storeDetails')->name('api.store.storeDetails');//供应商详情-基本信息
    Route::post('/storeimg','StoreController@storeImg')->name('api.store.storeImg');//供应商图片
    Route::post('/storepartners','StoreController@storePartners')->name('api.store.storePartners');//供应商合作伙伴
    Route::post('/storeservice','StoreController@storeService')->name('api.store.storeService');//供应商服务
    Route::post('/storeservicedetails','StoreController@storeServiceDetails')->name('api.store.storeServiceDetails');//供应商服务详情
    Route::post('/storecases','StoreController@storeCases')->name('api.store.storeCases');//供应商案例
    Route::post('/storecasesdetails','StoreController@storeCasesDetails')->name('api.store.storeCasesDetails');//供应商案例详情
    Route::post('/storeevaluatelists','StoreController@storeEvaluateLists')->name('api.store.storeEvaluateLists');//供应商评价列表

    Route::post('/storecollects','StoreController@storeCollects')->name('api.store.storeCollects');//收藏供应商
    Route::post('/storeevaluates','StoreController@storeEvaluates')->name('api.store.storeEvaluates');//评价供应商

    //需求
    Route::post('/demandadd','DemandController@demandAdd')->name('api.demand.demandAdd');//HR发布需求
    Route::post('/resultdemand','DemandController@resultDemand')->name('api.demand.resultDemand');//发布需求结果数据
    Route::post('/demandcate','DemandController@demandCate')->name('api.demand.demandCate');//需求分类
    Route::post('/demandscreen','DemandController@demandScreen')->name('api.demand.demandScreen');//需求筛选
    Route::post('/demandlists','DemandController@demandLists')->name('api.demand.demandLists');//需求列表
    Route::post('/demandsuppliersteps','DemandController@demandSupplierSteps')->name('api.demand.demandSupplierSteps');//供应商需求流程
    Route::post('/demandhrsteps','DemandController@demandHrSteps')->name('api.demand.demandHrSteps');//HR需求流程
    Route::post('/demandsupplierbid','DemandController@demandSupplierBid')->name('api.demand.demandSupplierBid');//供应商投标
    Route::post('/demandsupplierbiddata','DemandController@demandSupplierBidData')->name('api.demand.demandSupplierBidData');//供应商投标结果数据
    Route::post('/demanduploadcontract','DemandController@demandUploadContract')->name('api.demand.demandUploadContract');//供应商上传合同
    Route::post('/demandhrevaluate','DemandController@demandHrEvaluate')->name('api.demand.demandHrEvaluate');//HR评价此需求

    //活动
    Route::post('/actcate','ActivityController@actCate')->name('api.act.actCate');//活动分类
    Route::post('/actscreen','ActivityController@actScreen')->name('api.act.actScreen');//活动筛选
    Route::post('/actlists','ActivityController@actLists')->name('api.act.actLists');//活动列表
    Route::post('/actdetails','ActivityController@actDetails')->name('api.act.actDetails');//活动详情
    Route::post('/actsignupresult','ActivityController@actSignUpResult')->name('api.act.actSignUpResult');//活动报名结果

    Route::post('/actcollects','ActivityController@actCollects')->name('api.act.actCollects');//收藏活动
    Route::post('/actsignup','ActivityController@actSignUp')->name('api.act.actSignUp');//报名活动
    //商品
    Route::post('/goodscate','GoodsController@goodsCate')->name('api.goods.goodsCate');//商品分类
    Route::post('/goodsscreen','GoodsController@goodsScreen')->name('api.goods.goodsScreen');//商品筛选
    Route::post('/goodslists','GoodsController@goodsLists')->name('api.goods.goodsLists');//商品列表
    Route::post('/goodsdetails','GoodsController@goodsDetails')->name('api.goods.goodsDetails');//商品详情
    Route::post('/goodsevaluatelists','GoodsController@goodsEvaluateLists')->name('api.goods.goodsEvaluateLists');//商品评价列表
    Route::post('/goodscollects','GoodsController@goodsCollects')->name('api.goods.goodsCollects');//收藏商品

    Route::post('/buystep1','OrdersController@buyStep1')->name('api.order.buyStep1');//商品购买第一步
    Route::post('/buystep2','OrdersController@buyStep2')->name('api.order.buyStep2');//商品购买第二步
    Route::post('/goodspayorder','OrdersController@goodsPayOrder')->name('api.order.goodsPayOrder');//订单中心付款

    //购物车
    Route::post('/cartlists','CartController@cartLists')->name('api.cart.cartLists');//购物车列表
    Route::post('/cartedit','CartController@cartEdit')->name('api.cart.cartEdit');//添加或减少购物车数量
    Route::post('/cartdelete','CartController@cartDelete')->name('api.cart.cartDelete');//删除购物车
    //文档
    Route::post('/wordcate','WordController@wordCate')->name('api.word.wordCate');//文档分类
    Route::post('/wordscreen','WordController@wordScreen')->name('api.word.wordScreen');//文档筛选
    Route::post('/wordlists','WordController@wordLists')->name('api.word.wordLists');//文档列表
    Route::post('/worddetails','WordController@wordDetails')->name('api.word.wordDetails');//文档详情

    Route::post('/wordcollects','WordController@wordCollects')->name('api.word.wordCollects');//收藏文档
    Route::post('/worddownload','WordController@wordDownload')->name('api.word.wordDownload');//下载文档
    //新闻
    Route::post('/newslists','NewsController@newsLists')->name('api.news.newsLists');//新闻列表
    Route::post('/newsdetails','NewsController@newsDetails')->name('api.news.newsDetails');//新闻详情

    Route::post('/newscollects','NewsController@newsCollects')->name('api.news.newsCollects');//收藏新闻
    //个人中心-公用
    Route::post('/usersignin','MyController@userSignIn')->name('api.user.userSignIn');//用户签到
    Route::post('/userindex','MyController@userIndex')->name('api.user.userIndex');//用户首页数据
    Route::post('/userfootprint','MyController@userFootprint')->name('api.user.userFootprint');//用户足迹列表
    Route::post('/userinfo','MyController@userInfo')->name('api.user.userInfo');//用户基本信息
    Route::post('/userinfoedit','MyController@userInfoEdit')->name('api.user.userInfoEdit');//用户基本信息修改
    Route::post('/userasset','MyController@userAsset')->name('api.user.userAsset');//用户资产信息
    Route::post('/userintegrallogs','MyController@userIntegralLogs')->name('api.user.userIntegralLogs');//用户积分记录列表
    Route::post('/userbalancelogs','MyController@userBalanceLogs')->name('api.user.userBalanceLogs');//用户余额记录列表
    Route::post('/usergetintegral','MyController@userGetIntegral')->name('api.user.userGetIntegral');//用户获取积分提示
    Route::post('/usercashout','MyController@userCashOut')->name('api.user.userCashOut');//用户提现
    Route::post('/usercashoutlogs','MyController@userCashOutLogs')->name('api.user.userCashOutLogs');//用户提现记录列表
    Route::post('/usermailslists','MyController@userMailsLists')->name('api.user.userMailsLists');//用户站内消息列表
    Route::post('/usermailsdetails','MyController@userMailsDetails')->name('api.user.userMailsDetails');//用户站内消息详情
    Route::post('/usermailsread','MyController@userMailsRead')->name('api.user.userMailsRead');//用户站内消息标记为已读
    Route::post('/usermailsdelete','MyController@userMailsDelete')->name('api.user.userMailsDelete');//用户站内消息删除
    Route::post('/userfeedbackslists','MyController@userFeedbacksLists')->name('api.user.userFeedbacksLists');//用户投诉建议列表
    Route::post('/userfeedbacksdetails','MyController@userFeedbacksDetails')->name('api.user.userFeedbacksDetails');//用户投诉建议详情
    Route::post('/userfeedbacksadd','MyController@userFeedbacksAdd')->name('api.user.userFeedbacksAdd');//用户投诉建议添加
    Route::post('/userfeedbacksdelete','MyController@userFeedbacksDelete')->name('api.user.userFeedbacksDelete');//用户投诉建议删除
    Route::post('/userchangepwd','MyController@userChangePwd')->name('api.user.userChangePwd');//用户修改密码
    Route::post('/userchangemobile','MyController@userChangeMobile')->name('api.user.userChangeMobile');//用户修改手机号
    Route::post('/userdemandlists','MyController@userDemandLists')->name('api.user.userDemandLists');//用户需求列表
    Route::post('/useractlists','MyController@userActLists')->name('api.user.userActLists');//用户活动列表

    //个人中心-HR
    Route::post('/hrorderlists','MyController@hrOrderLists')->name('api.user.hrOrderLists');//HR订单列表
    Route::post('/hrorderdetails','MyController@hrOrderDetails')->name('api.user.hrOrderDetails');//HR订单详情
    Route::post('/hrorderchangestate','MyController@hrOrderChangeState')->name('api.user.hrOrderChangeState');//HR订单状态操作
    Route::post('/hrgoodsevaluates','MyController@hrGoodsEvaluates')->name('api.user.hrGoodsEvaluates');//HR评价商品
    Route::post('/hraddresslists','MyController@hrAddressLists')->name('api.user.hrAddressLists');//HR收货地址列表
    Route::post('/hraddressdetails','MyController@hrAddressDetails')->name('api.user.hrAddressDetails');//HR收货地址详情
    Route::post('/hraddressedit','MyController@hrAddressEdit')->name('api.user.hrAddressEdit');//HR收货地址新增或编辑
    Route::post('/hrcollectlists','MyController@hrCollectLists')->name('api.user.hrCollectLists');//HR我的收藏列表
    Route::post('/hrworddownloadlists','MyController@hrWordDownloadLists')->name('api.user.hrWordDownloadLists');//HR文档下载记录列表

    //个人中心-供应商
    Route::post('/supplierprofitlogs','MyController@supplierProfitLogs')->name('api.user.supplierProfitLogs');//供应商收益明细记录列表
    Route::post('/supplierbondreturn','MyController@supplierBondReturn')->name('api.user.supplierBondReturn');//供应商申请退货保证金
    Route::post('/supplieractcancel','MyController@supplierActCancel')->name('api.user.supplierActCancel');//供应商取消活动
    Route::post('/supplierrecharge','MyController@supplierRecharge')->name('api.user.supplierRecharge');//供应商余额充值
    Route::post('/supplierorderlists','MyController@supplierOrderLists')->name('api.user.supplierOrderLists');//供应商订单管理
    Route::post('/supplierorderdetails','MyController@supplierOrderDetails')->name('api.user.supplierOrderDetails');//供应商订单管理详情
    Route::post('/supplierdelivery','MyController@supplierDelivery')->name('api.user.supplierDelivery');//供应商订单管理-发货

});

